package com.zte.user.service;

import com.github.pagehelper.PageInfo;
import com.zte.user.model.Course;
import com.zte.user.model.Student;
import com.zte.user.model.Teacher;
import com.zte.user.model.Users;

import java.util.List;

public interface IUserService {
    public List<Users> login(Users users);
    public List<Users> findAll(Users users);
    public Student findAllStudent(Student student);
    public Teacher findAllTeacher(Teacher teacher);

    public List<Student> findAllStudents();
    public List<Teacher> findAllTeachers();
    public List<Course> findAllCourses();
    public Course findAllCourse(Course course);

    public PageInfo<Users> findPagebyAll(PageInfo<Users> pageInfo, Users users);
    public PageInfo<Student> findPagebyAllStu(PageInfo<Student> pageInfo1, Student student);
    public PageInfo<Teacher> findPagebyAllTeacher(PageInfo<Teacher> pageInfo2, Teacher teacher);
    public boolean addStu(Student student);
    public boolean addUser(Users users);
    public boolean addTeacher(Teacher teacher);
    public boolean addCourse(Course course);

    public boolean updateStu(Student student);
    public boolean updateUser(Users users);
    public boolean updateTeacher(Teacher teacher);
    public boolean updateTeacherper(Teacher teacher);
    public boolean updateStu1(Student student);
    public boolean updateCourse(Course course);

    public boolean deleteUser(Users users);
    public boolean deleteStudent(Student student);
    public boolean deleteTeacher(Teacher teacher);
    public boolean deleteCourse(Course course);

}
